#include <iostream>
using namespace std;
class mycin{
public:
    mycin(int good,int fail,int bad,int eof)
    :_good(good)
    ,_fail(fail)
    ,_bad(bad)
    ,_eof(eof)
    {    
    }
    operator bool(){
        return _good!=0;
    }
private:
int _good;
int _fail;
int _bad;
int _eof;

};
void test(){
    mycin mycin(1,0,0,0);
    if(mycin){
        cout<<"good"<<endl;
    }else{
        cout<<"not good"<<endl;
    }
}
int main(int argc, char * argv[]){
    test();    
    return 0;
}

